from django.contrib import admin
from .models import *

# 在admin站点上加上创建时间
class PostModelAdmin(admin.ModelAdmin):
    list_display = ('ptitle', 'create')

admin.site.register(Category)
admin.site.register(Tag)
admin.site.register(Post, PostModelAdmin)
